package com.carrot.newsgallery.utils;

import lombok.Getter;

@Getter
public enum ReturnCode {
    SUCCESS(0),

    //user相关
    USER_ALREADY_LOGIN(200),
    USER_NOT_LOGIN(201),
    USER_NOT_EXIST(202),
    USER_ALREADY_EXIST(205),
    USER_PASSWORD_ERROR(203),
    USER_BANNED(204),
    USER_ILLEGAL_OPERATION(206),
    USER_REPEAT_ENDORSE(207),
    USER_NOT_ENDORSE(208),

    DATA_ERROR(300),
    NO_DATA_FOUND(301),
    SERVER_ERROR(400);


    private int value;

    private ReturnCode(int value){
        this.value = value;
    }

    public int toInt(ReturnCode code){
        return 0;
    }

}
